<?php
require_once ROOT_DIR."/filter/Interface.php";

class Filter_Host2Level implements Filter_Interface 
{
	static public function filter($value)
	{
		return preg_replace('#^[a-zA-Z0-9]+\.([a-zA-Z0-9-]*?)\.([a-zA-Z0-9]{2,10}).*$#i', '$1.$2', $value);
	}
}

?>